{% extends "base.html" %}

{% block title %}Add a snippet{% endblock %}
{% block extrahead %}
<link href="/css/tip_add.css" rel="stylesheet" type="text/css" media="screen" />
<link href="/css/widgets.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="/js/jsi18n.js"></script>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/core.js"></script>
<script type="text/javascript" src="/js/calendar.js"></script>
<script type="text/javascript" src="/js/DateTimeShortcuts.js"></script>

{% endblock %}
{% block content_header %}Add a snippet{% endblock %}

{% block content %}

{% if form.errors %}
<p class="error">Please correct the errors below:</p>
{% endif %}

<form method="post" action="">
<dl>

<dt><label for="id_content">Notes: {% if form.content.errors %}<span class="error">{{ form.content.errors|join:", " }}</span>{% endif %}</label></dt>
<dd>{{ form.content }}</dd>

<dt><label for="id_tag_list">Tags: {% if form.tag_list.errors %}<span class="error">{{ form.tag_list.errors|join:", " }}</span>{% endif %} </label></dt>
<dd>{{ form.tag_list }} </dd>
<dd>Use commas between tag names, and hyphens for multiple words, like "tag1,tag2,tag3-with-long-name"</dd>

<dt><label for="id_duetime">Pub time:</label>&nbsp;&nbsp;{{ form.due_time }}{% if form.due_time.errors %}<span class="error">&nbsp;&nbsp;{{ form.due_time.errors|join:", " }}</span>{% endif %}</dt>

<dt id="rbDostatus"><label for="id_dostatus">Todo:</label>&nbsp;&nbsp;{{ form.dostatus }}{% if form.dostatus.errors %}<span class="error">&nbsp;&nbsp;{{ form.dostatus.errors|join:", " }}</span>{% endif %}</dt>

<dt><input type="submit" value="Save" /></dt>
</dl>
</form>
{% endblock %}
